package com.sunchangpeng.rocketmq.remoting.netty;

import lombok.Data;

@Data
public class NettyServerConfig implements Cloneable {
    private int listenPort = 8888;

    private int serverWorkerThreads = 8;
    private int serverSelectorThreads = 3;
    private int serverCallbackExecutorThreads = 0;

    private boolean useEpollNativeSelector = false;

    private int serverSocketSndBufSize = NettySystemConfig.socketSndbufSize;
    private int serverSocketRcvBufSize = NettySystemConfig.socketRcvbufSize;

    private int serverChannelMaxIdleTimeSeconds = 120;

    private boolean serverPooledByteBufAllocatorEnable = true;

    private int serverOnewaySemaphoreValue = 256;
    private int serverAsyncSemaphoreValue = 64;
}
